furny.ga.util
Class FurnitureUtil.FurniturePair

java.lang.Object
  extended by furny.ga.util.FurnitureUtil.FurniturePair
Enclosing class:
FurnitureUtil

private static class FurnitureUtil.FurniturePair
extends java.lang.Object

Sorted pair for caching similarities.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
private  Furniture bigger
           
private  Furniture smaller
           
 
Constructor Summary
FurnitureUtil.FurniturePair(Furniture f1, Furniture f2)
          Creates a pair.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smaller

private final Furniture smaller

bigger

private final Furniture bigger
Constructor Detail

FurnitureUtil.FurniturePair

public FurnitureUtil.FurniturePair(Furniture f1,
                                   Furniture f2)
Creates a pair.

Parameters:
f1 - Furniture one.
f2 - Furniture two.
Since:
11.08.2012
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object